Explorations with a Rigol DS1054Z Oscilloscope Part 2 - Capacitor Discharge, Long Time Values

In this tutorial we will look at the discharge rate of a capacitor using a Rigol 1054z digital oscilloscope. We are going to study a capacitor that takes a long time to discharge, in the order of 10’s of seconds. The article will mainly be concentrated on the use of the scope rather than providing a lesson in physics. We are going follow these 6 steps.

Step 1 Select suitable values for a capacitor and resistor.
Step 2 Set up a circuit with a capacitor in parallel with a resistor to discharge through. Connect this to the scope and a power supply.
Step 3 Set up the scope.
Step 4 Charge the capacitor.
Step 5 Observe the capacitor discharging on the scope.
Step 6 Compare theory with reality.

These steps are now broken down in detail.

Step 1
The time constant for a capacitor in parallel with a resistor is given by $\tau = RC$. This is the time in which the capacitor takes to get to approximately 37% of its initial voltage. $R$ is the value of the resistor in ohms. $C$ is the value of the capacitor in Farads. More information here . Ideally we’d like to see the value of $\tau$ to be about 10 seconds to give us enough time to observe this on the scope. Selecting values of $C=1000\mu F$ and $R=10k$ gives us $\tau = 10\times 10^{3}\times 1000\times 10^{-6} = 10s$.

Step 2
1. Wire up a capacitor in parallel with a resistor. You can do this with crocodile clips and it should look something like the image below. Be careful not to short the terminals on the capacitor if using this method.
2. Turn your power supply off (you can use a battery for this if you don’t have a power supply). Connect your power supply to the capacitor making sure the negative of the power supply is connected to the negative of the capacitor. A setting of about 5 Volts on the power supply is sufficient. When you turn the power supply on it will charge the capacitor. A few seconds is fine to fully charge the capacitor. When you turn the power supply off the capacitor will discharge through the resistor and this is what we will be measuring.

Resistor Capacitor setup image

Step 3
I’ll be referring to the figures below when explaining this step
1. Turn scope on (figure 1 - 10).
2. Connect a probe to channel 1 (figure 1 - 13) and set switch on the probe to 1X.
3. Press the channel 1 button on the scope (figure 2 top left). Your screen should now look something like image 3 below. The menu on the right is the important part for now. To change the menu item you press the button next to it (figure 1 -12) twist the dial (figure 1 - 3, figure 3) and press the dial to select it. Make sure your values match those in the image.
Set up the channel on scope image
4. We are now going to set the vertical axis on the scope which measures voltage. At the very bottom left of the screen (figure 6 -12) you should see a voltage value displayed next to the number 1. This shows the volts per division (the small squares on the screen). We are going to charge the capacitor to 5v. There are 8 divisions on the screen so if we set the volts per division to 1v we should have plenty of space to see the graph. You can do this by twisting the dial (figure 1 - 15, figure 2 bottom right).
5. If you look at the top left of the screen (fig 6 - 4) you should see a time measurement which is the time per horizontal division on the screen. There are 12 horizontal divisions. If we set the number of seconds per division to 5s this will give a minute to observe the capacitor discharge. To do this turn the dial (figure 1 - 16, figure 4 bottom).
6. If you look at the top of the screen to the right of the time division (figure 6 - 5) you should see a value with units MSa/s. This is the number of samples per second that the scope will capture. On its current setting the scope will take 2 Million samples per second. This is far too many for our purpose and will lead to a very noisy output. Observe the images below which show the a high sample rate left and a low sample rate right.

Image 1 Image 2
High sample rate image Low sample rate image

To change the sample rate press the Acquire button (figure 1 - 4) your screen should look something like the image below. Notice that we can’t set the sample rate directly but we have to set the total number of samples. Using the buttons to the right of the menu and the dial (figure 1 - 3) set this to it’s lowest value.

Scope acquire button image

Step 4
1. You now need to connect the scope probe to the resistor. Make sure the negative of the probe (the little wire with the crocodile clip attached) is attached to the end of the resistor that is connected to the negative of the capacitor. Clip the other end of the scope probe by pulling back on the plastic disk to reveal the the metal prong to the other end of the resistor.
2. Now turn your power supply on briefly, a few seconds should do. To observe the voltage value more directly you can also connect a multimeter to the same place as the scope probe.

Step 5
At first you won’t see anything on the scope screen. This is perfectly normal, it could take a few tens of seconds before you see anything. When the scope has collected enough data you will begin to see the trace. Just before the trace reaches the right hand edge of the screen press the stop button (figure 1 -7). If you don’t do this you will loose the data for the first part of the trace.

Step 6
You are now going to use the cursor functionality to calculate the time constant for the capacitor, resistor circuit.
1. Press the cursor button (figure 1 - 4) and use the menu buttons (figure 1-12) to set the mode to manual. Your screen should look something like the image below.
Scope cursor button Image
2. You now have access to four cursors. Two in the X direction, AX and BX and two in the Y direction AY and BY. Press the dial (figure 1 - 3) to alternate between them and turn the dial to adjust them. You will need to press the second menu button down (figure 1-12) to alternate between x and y axes. You are trying to get the lower Y cursor to be 37% of the upper Y cursor. Then alter the X cursors to read off the time values. When you are done your screen should look something like the image below.
3. The difference between the time values can be read off the screen as BY - AY. Compare this with the time constant for the circuit which should be 10s.
Cursor calculation image

Other tutorials in the series look at a fast discharge capacitor, resistor circuit which requires the use of a signal generator and also how to download the data from the scope for use in an spreadsheet application. This requires the scope to be network connected.

Figure 1 Rigol controls image

Figure 2 Figure 3 Figure 4 Figure 5
Controls 2 image Controls 3 image Controls 4 image Controls 5 image

Figure 6 Rigol screen image

Comments